#pragma once

#include "UMLUseCaseDiagram.h"


namespace uml {

UMLUseCaseDiagram::UMLUseCaseDiagram(const QString& umlType)
    : UMLDiagramWithAssociations(umlType) {}

void UMLUseCaseDiagram::fromJson(const QJsonObject& json, QStringList& errorList) {
    if (json.isEmpty()) {
        return;
    }

    UMLBehaviorDiagram::fromJson(json, errorList);
    UMLDiagramWithAssociations::fromJson(json, errorList);
}

void UMLUseCaseDiagram::toJson(QJsonObject& json) {
    UMLBehaviorDiagram::toJson(json);
    UMLDiagramWithAssociations::toJson(json);
}

} // namespace uml
